]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Home and End keys for app grid navigation
authorAnupam Kumar <kyteinsky@gmail.com>
Sun, 13 Mar 2022 08:18:11 +0000 (08:18 +0000)
committerMarge Bot <marge-bot@gnome.org>
Sun, 20 Mar 2022 22:19:25 +0000 (22:19 +0000)
Include Home and End keys for consistent behaviour with respect to
overview navigation.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2241>

js/ui/appDisplay.js

index 4fa2a5f6314fd9a4bdf52e7f5c8fb8e2d99d715a..62d0c9c1cebf4ee83a44473ff6011278d8ab3430 100644 (file)
@@ -1669,6 +1669,12 @@ class AppDisplay extends BaseAppView {
         } else if (event.get_key_symbol() === Clutter.KEY_Page_Down) {
             this.goToPage(this._grid.currentPage + 1);
             return Clutter.EVENT_STOP;
+        } else if (event.get_key_symbol() === Clutter.KEY_Home) {
+            this.goToPage(0);
+            return Clutter.EVENT_STOP;
+        } else if (event.get_key_symbol() === Clutter.KEY_End) {
+            this.goToPage(this._grid.nPages - 1);
+            return Clutter.EVENT_STOP;
         }
 
         return Clutter.EVENT_PROPAGATE;